package cn.com.wangluotongxin.merchants.service;

import cn.com.wangluotongxin.merchants.eureka.form.AddMerchantsMenuEditForm;
import cn.com.wangluotongxin.merchants.eureka.form.AddMerchantsMenuForm;
import cn.com.wangluotongxin.merchants.model.MerchantsMenu;
import cn.com.wangluotongxin.merchants.vo.DMerchantsMenuVo;
import cn.com.wangluotongxin.merchants.vo.MenuVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商户管理-菜单权限 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-04-26
 */
public interface IMerchantsMenuService extends IService<MerchantsMenu> {

    List<MerchantsMenu> getByUser(Integer userId);

    List<MerchantsMenu> getAllMenus();

    void initMenu(String targetTenantId);

    List<DMerchantsMenuVo> getList();

    DMerchantsMenuVo detail(Integer id);

    void add(AddMerchantsMenuForm form);

    void edit(AddMerchantsMenuEditForm form);

    void delete(Integer menuId);

    List<MenuVo> getTreeList();
}
